#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT([gOkey], [0.1], [onuraslan@gmail.com])
AM_INIT_AUTOMAKE([gnu -Wall])
AC_CONFIG_SRCDIR([src/gokey.c])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_MACRO_DIR(m4)

# Checks for programs.
PKG_PROG_PKG_CONFIG([0.15])
AC_PROG_CC

# Checks for libraries.
PKG_CHECK_MODULES([GTK],[gtk+-2.0 >= 2.6.0])
AC_SUBST([GTK_CFLAGS])
AC_SUBST([GTK_LIBS])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_FUNC_MALLOC

# Defining directories
AC_DEFINE_DIR([ICONDIR], "${datadir}/pixmaps", [Default directory for icons])
AC_DEFINE_DIR([PIXMAPDIR], "${datadir}/pixmaps/gokey", [Default directory for pixmaps])

# Config files
AC_CONFIG_FILES([Makefile src/Makefile])

AC_OUTPUT
